package com.example.j2025_11_10.Model;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class BookInfo {
//
//         `id` INT ( 11 ) NOT NULL AUTO_INCREMENT,
//        `book_name` VARCHAR ( 127 ) NOT NULL,
//        `author` VARCHAR ( 127 ) NOT NULL,
//        `count` INT ( 11 ) NOT NULL,
//        `price` DECIMAL (7,2 ) NOT NULL,
//        `publish` VARCHAR ( 256 ) NOT NULL,
//        `status` TINYINT ( 4 ) DEFAULT 1 COMMENT '0-无效, 1-正常, 2-不允许借阅',
//            `create_time` DATETIME DEFAULT now(),
//        `update_time` DATETIME DEFAULT now() ON UPDATE now(),
    private Integer id;
    private String bookName;
    private String author;
    private Integer count;
    private BigDecimal price;
    private String publish;
    private Integer status; //0-无效, 1-正常, 2-不允许借阅
    private String statusCN;
    private Date createTime;
    private Date updateTime;
}
